﻿<%@ Page Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="UpdateRole.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UserManagement.UpdateRole" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table class="style1">
   
    <tr>
        <td class="style4">
            User Type</td>
        <td class="style2">
            <asp:DropDownList ID="ddlUserType" runat="server" 
                onselectedindexchanged="ddlRoleType_SelectedIndexChanged" 
                AutoPostBack="True">
            </asp:DropDownList>
        </td>
        <td class="style3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td class="style4">
<asp:Label ID="Label1" runat="server" Text="Role Name"></asp:Label>
        </td>
        <td class="style2">
            <asp:DropDownList ID="ddlRole" runat="server" AutoPostBack="True" 
                onselectedindexchanged="ddlRole_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
        <td class="style3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td class="style4">
            New Role Name</td>
        <td class="style2">
            <asp:TextBox ID="txtNewRole" runat="server" style="margin-left: 1px"></asp:TextBox>
        </td>
        <td class="style3">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtNewRole" Display="Dynamic" 
                ErrorMessage="Please insert the new role name."></asp:RequiredFieldValidator>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td class="style4">
            New User Type</td>
        <td class="style2">
            <asp:DropDownList ID="ddlNewUserType" runat="server" 
                onselectedindexchanged="ddlNewUserType_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
        <td class="style3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td class="style4">
            Enabled</td>
        <td class="style2">
            <asp:CheckBox ID="chkEnabled" runat="server" />
        </td>
        <td class="style3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td class="style4">
            &nbsp;</td>
        <td class="style2">
<asp:Button ID="btnUpdateRole" runat="server"
    Text="Update Role" style="height: 26px" onclick="btnUpdateRole_Click" />
        </td>
        <td class="style3">
            <asp:Button ID="btnCancel" runat="server" onclick="Button1_Click" 
                Text="Cancel" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
 </asp:Content>